import Vue from 'vue'
import Vuex from 'vuex'
import home from './modules/home'
import user from './modules/user'
import persistedState from 'vuex-persistedstate'

Vue.use(Vuex)

// 注册每一个store
export default new Vuex.Store({
  plugins: [persistedState()],
  modules:{
    'home':home,
    'user':user
  }
})
